#include "Communicate.h"
#include "WaterDetect.h"

void WaterDetect_init()
{
    Communicate_init(WaterDetector_Uart);
}

uint8_t WaterDetect_get()
{
    uint8_t dat = 0;
    if(Communicate_available())
    {
        dat = Com_WaterDetector.BUF[Com_WaterDetector.begin_pointer-1];
        Com_WaterDetector.begin_pointer=Com_WaterDetector.end_pointer;
        return dat;
    }
}
